<?php

	class fluxHaving {
		
		private $field          = NULL;
		private $mainObj        = NULL;
		private $whereCondition = NULL;

		public function __construct ($field,$commonObj) {

			$this->field     = $field;
			$this->commonObj = $commonObj;

		}

		public function __call($method,$arguments) {

			$this->whereCondition[]=$this->commonObj->setWhere($method,$arguments);

		}

		public function __toString(){

			return	' HAVING ' . $this->field . ' ' . $this->commonObj->parseWherePart($this->whereCondition);
						

		}

	} //EOC

?>
